﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hi_Baidu.ProcessModel;

namespace Hi_Baidu.Timer
{
    /// <summary>
    ///     超时类公共部分
    /// </summary>
    class Globle
    {
        /// <summary>
        ///     提供了弹出错误框，并且将登陆状态归位的操作
        /// </summary>
        public static void ShowWindow()
        {
            LoginProcessModel.ChangeState(false, Hi_Baidu.Globle.win_Login);
            Win_Notify WN = new Win_Notify();
            WN.Owner = Hi_Baidu.Globle.win_Login;
            WN.Show();
        }

        /// <summary>
        ///     提供了弹出错误框 - ShowDialog
        /// </summary>
        public static void OnlyShowWindow()
        {
            Win_Notify WN = new Win_Notify();
            WN.Owner = Hi_Baidu.Globle.win_Login;
            WN.ShowDialog();
        }
    }
}
